package method_student;

public class MethodDemo08 {
    public static void main(String[] args) {
        chu(10, 0);
    }
    public static void chu(int a, int b){
        if(b == 0){
            System.out.println("您输入的数据有误，不能除以0");
            return;
        }
        int c = a / b;
        System.out.println(c);
    }
}
